//
// CuisineLink.cpp for  in /home/lund/Projets/pizzaillo
// 
// Made by florian dewulf
// Login   <dewulf_f@epitech.net>
// 
// Started on  Wed Apr 17 09:48:28 2013 florian dewulf
// Last update Wed Apr 17 10:09:42 2013 florian dewulf
//

#include	"CuisineLink.hpp"

using namespace std;

CuisineLink::CuisineLink(const string &str) : _alive(true), _read(str), _write(str)
{
}

CuisineLink::~CuisineLink();
{
}

void		CuisineLink::sendAlive()
{
  this->_write << "Alive ?";
}

void		CuisineLink::sendCmd()
{
  this->_write << this->_cmd;
}

string		CuisineLink::getMsg() const
{
  return this->_msg;
}

void		CuisineLink::setCmd(const string &str)
{
  this->_cmd = str;
}

void		CuisineLink::rcvAnswer()
{
  this->_read >> this->_msg;
}
